

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

import 'normalize.css'
import Mock from 'mockjs'
import '../node_modules/vant/lib/index.css';
// import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)

const pinia = createPinia()

pinia.use(piniaPersist)

app.use(pinia)

app.use(router)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// app.use(ElementPlusIconsVue)
// app.use(vueBaberrage)

app.mount('#app')
